<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../js/vue.js"></script>
    <title>Document</title>
    <style>
        input { font-size: 40px;}
    </style>
</head>
<body>
    <h1> 双向绑定 测试</h1>
    文本框 <---- info 
    <div id="app">
        <h2>双向绑定 {{ info }}</h2>
        <input type="text" v-model="info">

        <h2>单向绑定 {{ info }}</h2>
        <input type="text" v-bind:value="info">

        <h2> 练习 </h2>
        <p :price="price"> 华为手机 </p>

    </div>
</body>
<script>
var vm = new Vue({
    el: "#app",
    data: {
        info: '知行合一',
        price: 8000
    }
})

</script>
</html>